<div ng-controller="institutionCtrl" class="fill-height">
	<div class="table-margin">
		<div class="table-header">
	        <table class="table table-bordered">
		        <thead>
		            <tr>
		                <td class="w5 text-center">
		                    <input type="checkbox" 
		                    	   ng-model="master" 
		                    	   ng-mousedown="getDataID()" 
		                    	   ng-click="selectAll(master, tabVal)"
		                    	   >
		                </td>
		                <td class="w5 text-center">序号</td>
		                <td class="w10 text-center">机构名称</td>
		                <td class="w10 text-center">机构类型</td>
		                <td class="w10 text-center">性质</td>
		                <td class="w10 text-center">行业</td>
		                <td class="w10 text-center">地区(省/市)</td>
		                <td class="w10 text-center">状态</td>
		                <td class="w10 text-center">操作</td>
		            </tr>
		        </thead>		                            		                 		
	        </table>
	    </div>
	    <div class="table-body">
		    <table class="table table-bordered table-header">
	
		        <tbody>
		            <tr ng-repeat="val in tabVal" ng-class="{'active':$index%2!=0}">
		                <td  class="w5 text-center">
		                    <input type="checkbox" 
		                    	   ng-checked="master" 
		                    	   ng-mousedown="getDataID()" 
		                    	   ng-click="select(val,bool)"
		                    	   ng-model="bool" 
		                    	   >
		                </td>
		                <td class="w5 text-center">{{ $index+1 }}</td>
		                <td class="w10 text-center">{{ val.institutionName }}</td>
		                <td class="w10 text-center">{{ val.institutionType }}</td>
		                <td class="w10 text-center">{{ val.nature }}</td>
		                <td class="w10 text-center">{{ val.industry }}</td>
		                <td class="w10 text-center">{{ val.city }}</td>
		                <td class="w10 text-center">
		                	<strong class="text-success" ng-show="val.enabled==1">启用</strong>
		                	<strong class="text-danger"  ng-show="val.enabled==0">禁用</strong>
		                </td>
		                <td class="w10 text-center icon-td">
		                     <span class="btn-i border-none" title="所辖用户" ng-click="owned_user($index)" ui-sref="user.ownedUser">
	                            <img width="20px" src="../images/right-product/user.png">
	                        </span>
		                    <span class="btn-i" title="详情" ng-click="details($index)" data-toggle="modal" data-target="#details">
	                            <img width="14px" src="../images/right-product/view.png">
	                        </span>
	                        <span class="btn-i" title="修改"  ng-click="edit($index)" data-toggle="modal" data-target="#edit">
	                            <img width="14px" src="../images/right-product/edit.png">
	                        </span>
		                </td>
		            </tr>
		            <tr>
		                <td colspan="12" class="text-center" ng-hide="isNoData">暂无数据</td>
		            </tr>
		        </tbody>
		        <!--<tfoot ng-show="isNoData">
		            <tr>
		                <td colspan="12">
		                    <div class="pull-right">
		                        <nav>
		                            <tm-pagination conf="paginationConf"></tm-pagination>
		                        </nav>
		                    </div>
		                </td>
		            </tr>
		        </tfoot>-->
		    </table>
		</div>    
	</div>
</div>